package com.wenchao.jetpackdemo.navigation

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.wenchao.jetpackdemo.databinding.ActivityNavigationBinding

class NavigationActivity : AppCompatActivity() {

    private lateinit var binding: ActivityNavigationBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        binding = ActivityNavigationBinding.inflate(layoutInflater)
        setContentView(binding.root)

        binding.btnNavigationSimple.setOnClickListener {
            startActivity(Intent(this, NavigationSimpleActivity::class.java))
        }

        binding.btnBottomNavigation.setOnClickListener {
            startActivity(Intent(this, BottomNavigationActivity::class.java))
        }
    }

}